package com.tpyule.tpclass.service;

import com.tpyule.tpclass.entity.pojo.Studied;

/**
 * @author zzz
 * @version 1.0
 * @date 2020/4/16 16:42
 */
public interface StudiedService {
    public int addStudied(Studied studied);
    public int updateStudied(Studied studied);

    /**
     * 获取正在学习的章节
     * @param userId
     * @param courseId
     * @return
     */
    public Studied getLastStudied(String userId,String courseId);
    /**
     * 查找这节是否被用户学习过
     * @param userId
     * @param sectionId
     * @return
     */
    public Studied getStudiedBySU(String userId,String sectionId);
}
